﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using Microsoft.Phone.Controls;
using Microsoft.Phone.Tasks;

namespace MyDemos.Demos
{
    public partial class TaskDemo : PhoneApplicationPage
    {
        public TaskDemo ()
        {
            InitializeComponent ();
        }

        private void Button_Click (object sender, RoutedEventArgs e)
        {
            ShareStatusTask share = new ShareStatusTask ();
            share.Status = "Test \n 111 \n 222";
            share.Show ();

        }

        private void Button_Click_1 (object sender, RoutedEventArgs e)
        {
            ShareLinkTask task = new ShareLinkTask ();
            task.Title = "Test";
            task.LinkUri = new Uri ("http://www.google.com.tw/", UriKind.Absolute);
            task.Message = "Message";
            task.Show ();
        }

        private void Button_Click_2 (object sender, RoutedEventArgs e)
        {
            BingMapsTask task = new BingMapsTask ();
            task.SearchTerm = "hotel";
            task.Show ();
        }

    }
}